package org.example.what_mall.vo;

import lombok.Data;
import org.example.what_mall.entity.User;

@Data
public class UserCommentVO {
    private String headimg;
    private String nickname;

    public static UserCommentVO of(User user) {
        UserCommentVO vo = new UserCommentVO();
        vo.setHeadimg(user.getHeadimg());
        vo.setNickname(user.getNickname());
        return vo;
    }
}
